Precise masking